<?php

namespace App\Model\Dao;

use \Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity
 * @ORM\Table(name="banner")
 */
class Banner extends \Kdyby\Doctrine\Entities\BaseEntity{

    /**
     * @ORM\Id
     * @ORM\Column(type="integer")
     * @ORM\GeneratedValue
     */
    private $id;
    
    /**
     * @ORM\ManyToOne(targetEntity="BannerPosition")
     * @ORM\JoinColumn(name="bannerpositionid", referencedColumnName="id")
     */
    private $bannerposition;

    /**
     * @ORM\Column(type="string", length=255, nullable=true)
     */
    private $image;
    
    /**
     * @ORM\Column(type="string", length=255, nullable=true)
     */
    private $text;
    
    /**
     * @ORM\Column(type="string", length=255, nullable=true)
     */
    private $style;
    
    /**
     * @ORM\Column(type="string", length=255)
     */
    private $link;
    
    /**
     * @ORM\Column(type="string", length=255)
     */
    private $title;
    
    /**
     * @ORM\Column(type="datetimetz", nullable=true)
     */
    private $fromdate;
    
    /**
     * @ORM\Column(type="datetimetz", nullable=true)
     */
    private $todate;
    
    public function getId() {
      return $this->id;
    }

    public function getBannerposition() {
      return $this->bannerposition;
    }

    public function getImage() {
      return $this->image;
    }

    public function getText() {
      return $this->text;
    }

    public function getStyle() {
      return $this->style;
    }

    public function getLink() {
      return $this->link;
    }

    public function getTitle() {
      return $this->title;
    }

    public function getFromdate() {
      return $this->fromdate;
    }

    public function getTodate() {
      return $this->todate;
    }

    public function setId($id) {
      $this->id = $id;
    }

    public function setBannerposition($bannerposition) {
      $this->bannerposition = $bannerposition;
    }

    public function setImage($image) {
      $this->image = $image;
    }

    public function setText($text) {
      $this->text = $text;
    }

    public function setStyle($style) {
      $this->style = $style;
    }

    public function setLink($link) {
      $this->link = $link;
    }

    public function setTitle($title) {
      $this->title = $title;
    }

    public function setFromdate($fromdate) {
      $this->fromdate = $fromdate;
    }

    public function setTodate($todate) {
      $this->todate = $todate;
    }


}

